﻿using SQLite;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace KnifeZ.XamarinDomain.Models
{
    public enum DifficultyEnum
    {
        [Description("琐事")]
        Default,
        [Description("简单")]
        Easy,
        [Description("普通")]
        Normal,
        [Description("困难")]
        Hard,
        [Description("地狱")]
        Hell,

    }
    public class TodoItem : BasePoco
    {
        [PrimaryKey, AutoIncrement]
        public int ID { get; set; }

        public string Title { get; set; }
        public string Remark { get; set; }

        public string TaskType { get; set; }

        public DifficultyEnum Difficulty { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? StartTime { get; set; }

        /// <summary>
        /// 截止时间
        /// </summary>
        public DateTime? EndTime { get; set; }

        /// <summary>
        /// 重复规则
        /// </summary>
        public string LoopRule { get; set; }


        /// <summary>
        /// 提醒时间
        /// </summary>
        public DateTime? AlertTime { get; set; }

        public bool IsDone { get; set; }
        /// <summary>
        /// 星标/重要
        /// </summary>
        public bool Star { get; set; }

    }
}
